package cn.houserent.dao;

import cn.houserent.pojo.Street;

import java.io.Serializable;

public class StreetDao extends BaseDao {

    public Street load(Serializable id) {
        return (Street)HibernateUtil.currentSession().load(Street.class,id);
    }

    public Street get(Serializable id) {
        return (Street)HibernateUtil.currentSession().get(Street.class,id);
    }


    /**
     *  添加街道
     * @param street
     */
    public void save(Street street) {
        this.currentSession().save(street);
    }


    /**
     *  修改街道
     * @param street
     */
    public void update(Street street) {
        this.currentSession().update(street);
    }


    /**
     *  删除街道
     * @param street
     */
    public void delete(Street street) {
        this.currentSession().delete(street);
    }
}
